const Layout = () => import('@/layout/index.vue')

export default {
    path: '/personal_example_power',
    component: Layout,
    redirect: '/personal_example_power/index',
    name: 'personalExamplePower',
    meta: {
        title: '文件权限管理',
        icon: 'sidebar-breadcrumb',
        isTrue: localStorage.getItem("MEDIA_USER_INFO") && !(JSON.parse(localStorage.getItem("MEDIA_USER_INFO")).role == 'ADMIN')
    },
    children: [
        {
            path: 'index',
            name: 'personalExamplePowerIndex',
            component: () => import('@/views/personal_example_power/index.vue'),
            meta: {
                title: '文件权限',
                sidebar: false,
                breadcrumb: false,
                activeMenu: '/personalPower'
            }
        },
        {
          path: 'add',
          name: 'personalExamplePowerAdd',
          component: () => import('@/views/personal_example_power/add.vue'),
          meta: {
              title: '新增文件权限',
              sidebar: false,
              activeMenu: '/personalPower/add'
          }
        },
        {
          path: 'editUser',
          name: 'personalExampleUser',
          component: () => import('@/views/personal_example_power/editUser.vue'),
          meta: {
              title: '编辑成员',
              sidebar: false,
              activeMenu: '/personalPower/editUser'
          }
        },
        {
          path: 'editFiled',
          name: 'personalExampleFiled',
          component: () => import('@/views/personal_example_power/editFiled.vue'),
          meta: {
              title: '编辑文件权限',
              sidebar: false,
              activeMenu: '/personalPower/editFiled'
          }
        }
    ]
}
